package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    //用户下单
    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult getPage(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO getOrderDetailByOrderId(Long id);

    void cancelOrderById(Long id);

    void reminderOrder(Long id);

    void repetition(Long id);

    PageResult getOrderPageAdmin(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO getOrderStatusEver();

    OrderVO getOrderDetailByOrderIdAdmin(Long id);

    void receptOrderById(OrdersConfirmDTO id);

    void rejectOrder(OrdersRejectionDTO ordersRejectionDTO);

    void cancelOrderByIdAdmin(OrdersCancelDTO ordersCancelDTO);

    void deliverOrderById(Long id);

    void completeOrderById(Long id);
}
